package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * @author 小樱
 * @version 1.0
 * @date 2023/4/27 11:09
 * @Description 预约设置Dao
 */
@Mapper
public interface OrderSettingDao {

    List<OrderSetting> getOrderSettingByMonth(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    void editNumberByDate(@Param("id") Integer id, @Param("number") int number);

    OrderSetting selectByDate(@Param("date") LocalDate date);

    void insertByDate(@Param("date") LocalDate date, @Param("number") int number);



    /**
     * Excel批量预约
     * 1、查询
     * 2、更新
     * 3、新增
     * @param orderDate
     * @return
     */
    OrderSetting select(@Param("orderDate") Date orderDate);
    void updated(@Param("id") Integer id, @Param("number") int number);
    void insert( OrderSetting orderSetting);
}
